﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="adminProductClass.aspx.cs" Inherits="admin_adminProductClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" type="text/css" href="html/css/admin.css" />
    <link rel="stylesheet" type="text/css" href="html/css/common.css" />
    <link rel="stylesheet" type="text/css" href="html/js/date_input.css" />
    <style type="text/css">
    <!--
    .STYLE1 {
	    color: #e1e2e3;
    }
    .STYLE19 {
	    color: #344b50;
    }
    .STYLE21 {	
	    color: #3b6375;
    }
    .STYLE22 {	
	    color: #295568;
    }
    -->
    </style>    
    <script type="text/javascript" language="javascript" src="../js/jquery-1.3.2.min.js"></script>    
    <script type="text/javascript" language="javascript" src="../js/GetAjax.js"></script>
</head>
<script language="javascript" type="text/javascript">
    $(function(){
        $("span.productClass_del").bind("click",function(){
            if(confirm("是否确认删除该数据！？"))
            {
                $("#loading").show();
                var url="";
                var param="";
                url="?action=del&productClassID="+$(this).attr("title");
                url=convertURL(url);
                ajax_get(url,'',function(msg){
                    if(msg=="1")
                    {                  
                        alert("删除失败！");
                    }
                    else
                    {
                        $("#container").empty().append(msg);  
                        $("#loading").hide();
                    }
                });
            }
        });
        $("span.productClass_edit").bind("click",function(){
            document.location.href="addProductClass.aspx?action=edit&pcid="+$(this).attr("title");
        });
        $("#span_add").bind("click",function(){
            document.location.href="addProductClass.aspx";           
        });
    });
</script>
<body onload="$('#loading').hide()">
<div id="container">
<div id="loading" style="display:block">   
    <div class="loading-indicator">   
        .页面正在加载中...   
    </div>   
</div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="30" height="19" valign="bottom"><div align="center" style="width:30px"><img src="html/images/tb.gif" width="14" height="14" /></div></td>
                <td valign="bottom"><span class="STYLE1">产品类别</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1" id="span_add" style="cursor:pointer">
              &nbsp;&nbsp;<img  src="html/images/add.gif" width="10" height="10" /> 添加 &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table>
	</td>
  </tr>  
  <tr>
    <td>
        <asp:Repeater ID="rep_productClass" runat="server">
        <HeaderTemplate>
          <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" onmouseover="changeto()"  onmouseout="changeback()">
          <tr>
            <td width="4%" height="20" bgcolor="d3eaef"><div align="center">
              <input type="checkbox" name="checkbox" id="checkbox" />
            ID</div></td>
            <td width="19%" height="20" bgcolor="d3eaef" ><div align="center">产品类别名称</div></td>
            <td width="20%" height="20" bgcolor="d3eaef" ><div align="center"><span >类别添加时间</span></div></td>
            <td width="17%" height="20" bgcolor="d3eaef" ><div align="center"><span >基本操作</span></div></td>
          </tr>        
        </HeaderTemplate>
        <ItemTemplate>
        <tr>
        <td height="20" bgcolor="#FFFFFF"><div align="center">
          <input type="checkbox" name="checkbox2" id="checkbox2" />
          <%#Eval("pcid") %>
        </div></td>
        <td bgcolor="#FFFFFF" class="STYLE19" ><%#Eval("productClassName")%></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><%#Eval("productClassDate")%></div></td>
        <td height="20" bgcolor="#FFFFFF">
		  <div align="center" class="STYLE21">
		  	<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr align="center">
					<td><span class="productClass_edit" title="<%#Eval("pcid")%>" style="cursor:pointer">编辑 </span></td>
					<td><span class="productClass_del" title="<%#Eval("pcid")%>" style="cursor:pointer">删除</span></td>
				</tr>
			</table>			
		  </div>
		</td>
      </tr>
        </ItemTemplate>
        <FooterTemplate>
        </table>
        </FooterTemplate>
        </asp:Repeater>      
    
    </td>
  </tr>
  <tr>
	  <td height="40"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
        <tr valign="middle">
          <td width="8%" valign="middle" bgcolor="#d3eaef">&nbsp;&nbsp;&nbsp;全选<input name="Input2" type="checkbox" value="" />
         |&nbsp; 反选<input name="Input3" type="checkbox" value="" checked="checked" />
          <input name="button" type="button" class="btn" value="批量收藏" /></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="33%"><div align="left"><span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;共有<strong> 243</strong> 条记录，当前第<strong> 1</strong> 页，共 <strong>10</strong> 页</span></div></td>
        <td width="67%"><table width="312" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="49"><div align="center"><img src="html/images/main_54.gif" width="40" height="15" /></div></td>
            <td width="49"><div align="center"><img src="html/images/main_56.gif" width="45" height="15" /></div></td>
            <td width="49"><div align="center"><img src="html/images/main_58.gif" width="45" height="15" /></div></td>
            <td width="49"><div align="center"><img src="html/images/main_60.gif" width="40" height="15" /></div></td>
            <td width="37" class="STYLE22"><div align="center">转到</div></td>
            <td width="22"><div align="center">
                <input type="text" name="textfield" id="textfield"  style="width:20px; height:12px; font-size:12px; border:solid 1px #7aaebd;"/>
            </div></td>
            <td width="22" class="STYLE22"><div align="center">页</div></td>
            <td width="35"><img src="html/images/main_62.gif" width="26" height="15" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr> 
</table>
</div>
</body>
</html>
